//
//  FourthViewController.m
//  UI_homework_07_UITabBarController
//
//  Created by li cheng on 16/7/22.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "FourthViewController.h"
#import "ViewController.h"

@interface FourthViewController ()

@end

@implementation FourthViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton *buttonOfloading = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfloading.frame = CGRectMake(100, 100, 100, 40);
    buttonOfloading.backgroundColor = [UIColor greenColor];
    [buttonOfloading setTitle:@"登录" forState:UIControlStateNormal];
    [buttonOfloading addTarget:self action:@selector(clickButton:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:buttonOfloading];
    
    
}

- (void)clickButton:(UIButton *)button{
    ViewController *vc = [[ViewController alloc] init];
    [self presentViewController:vc animated:YES completion:^{
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
